﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="article_list.aspx.cs" Inherits="AutoFix.article_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="AdditionalPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MessagePlaceHolder" runat="server">
    Shows the articles available
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div id="pageActionMessage" runat="server"></div>
    <div class="item">
        
        <asp:DataList ID="dtlArticles" runat="server" RepeatDirection="Horizontal" RepeatColumns="4" RepeatLayout="Flow" OnItemCommand="dtlArticles_ItemCommand" OnItemDataBound="dtlArticles_ItemDataBound">
            <ItemTemplate>
                <div class="item-box-holder">
            <div class="item-holder-one">
                <div style="position: relative; top: -15px">
                    <div class="item-common-left-holder">
                        <asp:LinkButton ID="lnkEditSteps" runat="server" CssClass="text-size-one-bold" CommandName="EditSteps" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ArticleID") %>' Text="Edit Steps" />
                    </div>
                    <div class="article-type-holder">
                                <div class="text-size-one"><span class="text-size-one-bold">Type:</span> <asp:Label ID="lblArticleType" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ArticleTypeName") %>' /></div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="small-image"><img src='<%# DataBinder.Eval(Container, "DataItem.ArticleImageUrl") %>' class="small-image" /></div>
                <div class="section-right">
                    <asp:LinkButton ID="lnkEditArticle" runat="server" CommandName="Edit" CssClass="text-size-two" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ArticleID") %>' Text='<%# DataBinder.Eval(Container, "DataItem.ArticleName") %>'  />
                   <br /><br />
                    <p class="text-size-one"><%# DataBinder.Eval(Container, "DataItem.StepContent") %></p>
                </div>

            </div>
                    <div class="clear"></div>
            <div class="common-holder"><asp:Button ID="btnDeleteArticle" runat="server" Text="Delete Article" CssClass="remove-button" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ArticleID") %>' />
                <asp:Button ID="btnEditArticle" runat="server" Text="Edit Article" CssClass="button" CommandName="Edit" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.ArticleID")  %>' />
                
                <div class="clear"></div>
            </div>
        </div>
            </ItemTemplate>
        </asp:DataList>
        <div class="clear"></div>
    </div>
</asp:Content>
